package com.erik.thread_Exe.e00;

public class threadClass extends Thread{
    threadClass(String name){
        super(name);
    }

    //重写run()方法
    @Override
    public void run() {
        for(int i=0;i<=10;i++){
            System.out.println(getName()+"正在打印"+i);
        }
    }
}
